const koa = require('koa')
const wechat = require('./wechat-lib/middleware')
const config = require('./config/config')
const { reply } = require('./wechat/reply')

const app = new koa()
app.use(wechat(config.wechat, reply))

app.listen(config.port)
console.log('listen:' + 8080)